/*
 * spi_sw.h
 *
 *  Created on: 23.04.2013
 *      Author: Roma Jam
 */

#ifndef SPI_SW_H_
#define SPI_SW_H_

#include "kl_lib_l15x.h"

//RJ adapted for PN532
#define PN_NSS_IRQ_GPIO	    GPIOB
#define PN_GPIO			    GPIOA
#define PN_MOSI				7
#define PN_MISO				6
#define PN_NSS				0
#define PN_SCK				5
#define PN_IRQ				1
#define PN_RST				4


class Spi_sw_t{
private:
	Ports_t Miso, Mosi, Sck;
public:
	Ports_t Cs;
	void Init();
	uint8_t WriteReadByte(uint8_t AByte);
};
extern Spi_sw_t Pn_Spi;

#endif /* SPI_SW_H_ */
